package com.company.card_service.mapper;

import com.company.card_service.model.Employee;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.card_service.vo.EmployeeQueryVo;
import com.company.card_service.vo.PCEmployeeVo;
import com.company.card_service.vo.UEmployeeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:06
 */
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    UEmployeeVo getAllDataOfEmployee(Long id);

    List<PCEmployeeVo> pageEmployeeQuery(Integer companyid,Integer employeeId, Date startDate, Date endDate, Integer current, Integer size);

    List<PCEmployeeVo> pageAllEmployeeQuery(Integer employeeId, Date startDate, Date endDate);

    List<PCEmployeeVo> pageEmployeeTypeQuery(Integer current, Integer size, Integer typeId,Integer companyid);

    List<PCEmployeeVo> excellentEmployee(Integer companyId);
}
